import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false
//import "./assets/css/comm.scss";  //全局导样式 
import './assets/css/iconfont.css';
//注册全局组件
import page from "./components/page.vue"
Vue.component("page",page);
import pageHeader from "./components/pageHeader.vue"
Vue.component("pageHeader",pageHeader);

import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)

import axios from "axios";
Vue.prototype.$http=axios.create({
  baseURL:"https://www.softeem.xin"
});

//在vue的原型上面去扩展了方法 
Vue.prototype.showLoading=function(title){
  this.$store.dispatch("showLoading",title);
}
Vue.prototype.hideLoading=function(){
  this.$store.dispatch("hideLoading");
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
